import request from '@/utils/request'

// 查询安全考试列表
export function listSafetyexam(query) {
  return request({
    url: '/system/examinationinfo/list',
    method: 'get',
    params: query
  })
}
// 查询试卷列表
export function listTestpaper(query) {
  return request({
    url: '/system/examinationpaperinfo/list',
    method: 'get',
    params: query
  })
}
//添加考试
export function addSafetyexam(data) {
  return request({
    url: '/system/examinationinfo',
    method: 'post',
    data: data
  })
}
// 查询考试详细信息
export function testPaperDetail(safetyExaminationId) {
  return request({
    url: '/system/examinationinfo/' + safetyExaminationId,
    method: 'get'
  })
}
// 修改考试信息
export function modifySafetyexam(data) {
  return request({
    url: '/system/examinationinfo/update',
    method: 'post',
    data: data
  })
}
// 删除考试信息
export function deleteSafetyexam(safetyExaminationId) {
  return request({
    url: '/system/examinationinfo/' + safetyExaminationId,
    method: 'delete'
  })
}
